<template>
  <div class="tab-bar">
    <van-tabbar v-model="active" route>
      <van-tabbar-item
        v-for="nav in navs"
        :key="nav.path"
        :to="nav.path"
        :icon="(nav.meta?.icon as string)"
        replace
      >{{ nav.meta?.title }}</van-tabbar-item>
    
    </van-tabbar>
    
 
    
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import routes from '@/router/routes';
const active=ref(1)
const navs=routes.filter(route => route.meta?.inTabbar)





</script>

<style  lang="less" scoped>

</style>
